//
//  RLHttpRequestLayer.h
//  CodeForANF2
//
//  Created by relax on 2017/11/15.
//  Copyright © 2017年 relax. All rights reserved.
//

#import <Foundation/Foundation.h>


// 请求成功的 block
typedef void(^RLRequestSuccessBlock)(id responseObject);
// 请求失败的 block
typedef void(^RLRequestFailureBlock)(NSError *error);



@interface RLHttpRequestLayer : NSObject

/** 登陆 */
+ (__kindof NSURLSessionTask *)getLoginParams:(NSDictionary *)params success:(RLRequestSuccessBlock)successBlock failureBlock:(RLRequestFailureBlock)failureBlock;

/** 登出 */
+ (__kindof NSURLSessionTask *)getExitWithParams:(NSDictionary *)params success:(RLRequestSuccessBlock)successBlock failureBlock:(RLRequestFailureBlock)failureBlock;


@end
